

	if (top.location != self.location){     
		top.location=self.location;     
	}

	//回车执行事件
	$(function(){
		document.onkeydown = function(e){ 
		    var ev = document.all ? window.event : e;
		    if(ev.keyCode==13) {
		           $("#loginbtn").click();//处理事件
		     }
		};
	});  
	
	function checkFormSerialize (){
		var username = $.trim($("#username").val());
		var password = $.trim($("#password").val());
		var code = $.trim($("#code").val());
		if(code==""){
			layer.msg("验证码不能为空！");
			return;
		}
		if(username==""||password==""){
			layer.msg("用户名密码不能为空！");
			return;
		}
		ajax( {
			type:"post",
			url:path+"/a/loginVerify.aspx",
			data:{
				"username" : username,
				"password" : $.md5(password),
				"code" : code
			},
			success : function(result) {

					window.location.href = "/admin/index/main.aspx";

			}
		});	
	}		
